package com.ydcycloud.user.service.impl;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Component;

import com.ydcycloud.sys.service.impl.BaseServiceImpl;
import com.ydcycloud.user.dao.UserDao;
import com.ydcycloud.user.model.User;
import com.ydcycloud.user.service.UserService;

@Component("userService")
public class UserServiceImpl  extends BaseServiceImpl<UserDao, User, Integer>
implements UserService {

	@Autowired
	public void setDao(UserDao dao) {
		this.dao = dao;
	}

	@Override
	public User getLoginUser(String account) {
		// TODO Auto-generated method stub
		return dao.getLoginUser(account);
	}

	@Override
	public User getUserInfo() {
		// TODO Auto-generated method stub
		return dao.getUserInfo();
	}
}
